<?php

include '../functions.php'; 

include './Model.class.php';


$model = new Model('stu');

exit;
//查
$data = $model->select();

$data = $model->where(['name'=>'小明'])->select();


$model = new Model('stu');

$model->limit(5)->select();

//删
$model->del(2);
//查
$model->find(6);
// 增加
$data = ['name'=>'xuebingsi','sex'=>'男'];

$model->add($data);
// 更新
$data = ['name'=>'xuebingsi','sex'=>'男'];

$model->where(['id'=>5])->update($data);

// 执行原生 
$data = $model ->query('select * from stu');

$data = $model ->exec('delete from stu');





 ?>